package org.viki.ljspider;

import java.util.ArrayDeque;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



public class UrlHelper {
	private static final Logger LOGGER = LoggerFactory.getLogger(UrlHelper.class);
	private static final String head = "https://bj.lianjia.com/chengjiao/";
	private static ArrayDeque<String> seedUrl = new ArrayDeque<String>();
	
	UrlHelper(){
		initSeedUrl();
	}

	private void initSeedUrl() {
		ArrayDeque<String> tailUrl = new ArrayDeque<String>();
		
		tailUrl = DbHelper.getLocation();
		for(String str: tailUrl){
			StringBuffer sb = new StringBuffer(head);
			seedUrl.add(sb.append(str).toString());
		}
		
	}
	public ArrayDeque<String> getSeedUrl(){
		return seedUrl;
	}
	
	
	
}
